using System;
using System.Collections;
using System.Collections.Generic;

using QLKS.DataLayer.Base;

namespace QLKS.DataLayer.BusinessObjects
{
    public partial class CTMatDoSuDung : BusinessBase<int>
    {
        #region Declarations

		private decimal _tyLe = default(Decimal);
		private decimal _soNgayThue = default(Decimal);
		private decimal _thang = default(Decimal);
		private decimal _nam = default(Decimal);
		
		private Phong _phong = null;
		
		
		#endregion

        #region Constructors

        public CTMatDoSuDung() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_tyLe);
			sb.Append(_soNgayThue);
			sb.Append(_thang);
			sb.Append(_nam);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual decimal TyLe
        {
            get { return _tyLe; }
			set
			{
				OnTyLeChanging();
				_tyLe = value;
				OnTyLeChanged();
			}
        }
		partial void OnTyLeChanging();
		partial void OnTyLeChanged();
		
		public virtual decimal SoNgayThue
        {
            get { return _soNgayThue; }
			set
			{
				OnSoNgayThueChanging();
				_soNgayThue = value;
				OnSoNgayThueChanged();
			}
        }
		partial void OnSoNgayThueChanging();
		partial void OnSoNgayThueChanged();
		
		public virtual decimal Thang
        {
            get { return _thang; }
			set
			{
				OnThangChanging();
				_thang = value;
				OnThangChanged();
			}
        }
		partial void OnThangChanging();
		partial void OnThangChanged();
		
		public virtual decimal Nam
        {
            get { return _nam; }
			set
			{
				OnNamChanging();
				_nam = value;
				OnNamChanged();
			}
        }
		partial void OnNamChanging();
		partial void OnNamChanged();
		
		public virtual Phong Phong
        {
            get { return _phong; }
			set
			{
				OnPhongChanging();
				_phong = value;
				OnPhongChanged();
			}
        }
		partial void OnPhongChanging();
		partial void OnPhongChanged();
		
        #endregion
    }
}
